<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>管理系统Demo版</title>
    <asset:stylesheet src="layui/css/layui.css"/>
    <asset:stylesheet src="menu.css"/>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">Demo后台管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="">用户</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <sec:ifLoggedIn>
                    <a href="javascript:;"><asset:image src="layui/images/face/59.gif" ></asset:image> <sec:loggedInUserInfo field='username'/></a>
                    <dl class="layui-nav-child">
                        <dd><a href="">基本资料</a></dd>
                        <dd><a href="">安全设置</a></dd>
                    </dl>
                </sec:ifLoggedIn>
                <sec:ifNotLoggedIn>
                    <g:link controller='login' action='auth'>Login </g:link>
                </sec:ifNotLoggedIn>
            </li>
            <li class="layui-nav-item"><a href="/logout">注销</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <g:text value="${this.menu.replace("<li>", "<li class=\"layui-nav-item layui-nav-itemed\">").replace("<dl>", "<dl class=\"layui-nav-child\">").replace("<a ", "<a target=\"mainWindow\" ")}"></g:text>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <iframe id="mainWindow" name="mainWindow" width='100%' height='100%' frameborder='0' src="welcome" style="padding: 15px;"></iframe>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        demo - 底部固定区域
    </div>
</div>
<asset:javascript src="layui/layui.js"/>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;
    });
</script>
</body>
</html>
